#define DBC_CHECK_PRECONDITION

using System;
using System.Xml;

using DesignByContract;

namespace Outcoding.GraphGenerator.Entities.XmlBuilders {
    public class AxesXmlBuilder : IXmlBuilder {
        
        private Axes mResultObject = null;

        public Axes ResultObject {
            get {
                return mResultObject;
            }
        }

        public AxesXmlBuilder(XmlNode axesXmlNode) {
            Check.Require(axesXmlNode != null, "Xml source node cannot be null");
            Check.Require(axesXmlNode.Name.CompareTo(XmlTagNames.axes.ToString()) == 0, "An Axes Xml node must be supplied.");
            this.BuildObject(axesXmlNode);
        }

        private void BuildObject(XmlNode axesXmlNode) {
            mResultObject = new Axes();
        }
    }
}
